package com.iocup.keybastion.sso.core;


import com.iocup.keybastion.sso.ClientElementProvider;
import com.iocup.keybastion.sso.config.Client;
import com.iocup.keybastion.sso.config.SsoProperties;

import java.util.List;

/**
 * @author xyjxust
 * @create 2023/2/2 10:42
 **/
public class ConfigFileClientElementProvider  implements ClientElementProvider {

    private SsoProperties ssoProperties;

    public ConfigFileClientElementProvider(SsoProperties ssoProperties){
        this.ssoProperties = ssoProperties;
    }

    @Override
    public List<Client> getAll() {
        return ssoProperties.getClients();
    }
}
